/*
 * @Description:
 * @Author: zheng yiliang
 * @Date: 2021-03-10 20:29:24
 * @LastEditTime: 2021-06-11 12:40:26
 * @LastEditors: zheng yiliang
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  nickName: state => state.user.nickName,
  userId: state => state.user._id,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  permission_routes: state => state.permission.routes
}
export default getters
